<?php
namespace app\adminapi\controller\setting\lang;

use app\adminapi\controller\BaseAdminApiController;
use app\adminapi\lists\setting\lang\LangCountryLists;
use app\adminapi\logic\setting\lang\LangCountryLogic;

/**
 * 国际语言控制器
 * Class LanguasController
 * @package app\adminapi\controller\setting
 */
class LangCountryController extends BaseAdminApiController
{
    public $notNeedLogin = ['getLangCountryAll'];

    /**
     * 获取所有国际语言
     * @return \support\Response
     */
    public function getLangCountryAll()
    {
        $result = LangCountryLogic::getLangCountryAll();
        return $this->data($result);
    }

    /**
     * 获取所有国际语言
     * @return \support\Response
     */
    public function lists()
    {
        return $this->dataLists(new LangCountryLists());
    }

}
